<div class="bg-light lter b-b wrapper-md">
  <h1 class="m-n font-thin h3">产品管理</h1>
</div>

<div class="wrapper-md">
  <div class="panel panel-default">
    <div class="panel-heading">
      虚拟人管理
    </div>
    <toaster-container toaster-options="{'position-class': 'toast-center', 'close-button':true}"></toaster-container>
    <div class="panel-body b-b b-light">
      <p>
        虚拟人ID: <input id="filter" type="text" ng-model="virtualData.userId" class="form-control input-sm w-sm inline m-r">
        <button class="btn btn-info btn-addon" ng-if='!graybtn' ng-click="queryvirtual()">查询</button>
        <button class="btn btn-light btn-addon" ng-if='graybtn'>查询</button>
        </p>
        <p class="col-sm-4">
            <button class="btn btn-info btn-addon" ng-click="addvirtual()">添加</button>
        </p>            
    </div>
    <div class="table-responsive">
      <table id="tab" class="table table-striped m-b-none">
        <thead>
          <tr>
            <th style="min-width: 50px">主键</th>
            <th style="min-width: 100px">虚拟人ID</th>
            <th style="min-width: 100px">终端类型</th>
            <th style="min-width: 100px">创建时间</th>
            <th style="min-width: 100px">操作</th>
          </tr>
        </thead>
        <tbody>
          <tr ng-if="virtualList==''"><td colspan="9">当前无任何数据</td></tr>
          <tr ng-repeat="obj in virtualList">
            <td ng-bind="obj.Id"></td>
            <td ng-bind="obj.UserId"></td>
            <td ng-bind="obj.TerminalTypeId==0?'微站':obj.TerminalTypeId==1?'android':'ios'"></td>
            <td ng-bind="obj.CreateTime|date:'yyyy-MM-dd HH:mm:ss'"></td>
            <td><button class="btn m-b-xs btn-sm btn-info" style="margin-right:10px;" ng-click="editvirtual(obj.Id)">编辑</button></td>
          </tr>
        </tbody>
      </table>
    </div>
  </div>
  <div class="btn-group pull-right">
    <button type="button" class="btn btn-default" ng-click="prev()"><font><font>上一页</font></font></button>
    <button type="button" class="btn btn-default btnNum">{{virtualData.pageIndex}}</button>
    <button type="button" class="btn btn-default" ng-click="next()"><font><font>下一页</font></font></button>
    <span class="btn btn-default">共<span ng-bind="ListCount+'条数据'"></span></span>
  </div>
